/**
 * 
 */
package com.chinamobile.maps.orm;

import com.chinamobile.maps.util.GenerateUuid;

/**
 * @author FrankWong
 *
 */
public class RegionModel {

	private Integer id;
	private String name;
	private Integer parentRegionId;
	private String parentRegionName;
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getParentRegionId() {
		return parentRegionId;
	}
	public void setParentRegionId(Integer parentRegionId) {
		this.parentRegionId = parentRegionId;
		this.parentRegionName = GenerateUuid.microRegionMap.get(parentRegionId.toString());
	}
	public String getParentRegionName() {
		return parentRegionName;
	}
	public void setParentRegionName(String parentRegionName) {
		this.parentRegionName = parentRegionName;
	}
}
